﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TemplateWizard;
using EnvDTE;
using LogoGenerator;
using System.IO;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Media;

namespace RssReaderTemplate.Wizard
{
    public class GUIWizardRunner : WizardBase
    {
        public override void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
        {
            base.RunStarted(automationObject, replacementsDictionary, runKind, customParams);
            bool? ok = new Wizard(TemplateParameters).ShowDialog();
            if (ok.HasValue && ok.Value)
            {
                AddParameters(replacementsDictionary);
            }
        }

        public override bool CanRun
        {
            get
            {
                return true;
            }
        }
    }
}
